link in laravel

106

php artisan storage:link
Put your assets in the public folder; e.g.:

public/css
public/images
public/fonts
public/js
  
{{ URL::asset('js/scrollTo.js'); }}
{{ URL::asset('css/css.css'); }}
{{ URL::asset('...'); }}
# \('o')/
At first give a name to your route and then use it in then use it in anchar tag

Route::get('/', function () {
    return view('welcome');
})->name('welcome');
Route::get('/about', 'PagesController@about')->name('about');

Now you can use it in any page to refer them. like in contact page

<html>
..
....
<a href="{{route('welcome')}}">Home</a>
<a href="{{route('about')}}">About</a>

Comments

Submit
0 Comments